import 'package:flutter/material.dart';
import 'HttpDioDemo.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(

      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(

      appBar: AppBar(title: Text('File And Http Demo'),),

      body: new Column(

        children: <Widget>[

          RaisedButton(

            child: Text('HttpDioDemo'),

            onPressed: () {
              Navigator.push(
                  context, MaterialPageRoute(builder: (BuildContext context) {
                return HttpDioDemo();
              }));
            },
          )
        ],
      ),
    );
  }
}